package com.quick.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.quick.annotation.IgnoreToken;
import com.quick.base.Page;
import com.quick.base.Search;
import com.quick.basic.search.BannerSearch;
import com.quick.basic.vo.BannerVo;
import com.quick.service.IBannerService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("api/banner")
@Api(tags = "广告栏")
public class BannerController {
	
	@Autowired
	private IBannerService bannerService;
	
	
	@PostMapping("search")
	@ApiOperation("分页查询")
	@IgnoreToken
	public Page<BannerVo> search(@RequestBody Search<BannerSearch> query){
		return bannerService.search(query);
	}

}
